package com.devilmole.vote.controller;

import com.devilmole.vote.service.ManageService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by devilmole on 2017/8/25.
 */
@Controller
@Log4j2
@RequestMapping("/manage")
public class ManageController {

    @Autowired
    private ManageService manageService;

    @RequestMapping(method = {RequestMethod.POST},
            value = "/list")
    public String eventList(){

        return "index";
    }

    @RequestMapping(method = {RequestMethod.POST},
            value = "/newActivity")
    @ResponseBody
    public String newActivity(){

        return "";
    }
}
